﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="myStackSandbox._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="inputDiv">
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server"></asp:TextBox>
            <br />
            Content:
            <br />
            <asp:TextBox ID="ContentTextBox" runat="server" Height="80px" TextMode="MultiLine"></asp:TextBox>
            <br />
            <asp:Button ID="PushButton" runat="server" Text="Push!" 
                onclick="PushButton_Click" />
        </div>
        <div id="displayDiv">
            <asp:Button ID="DisplayStackButton" runat="server" Text="Display Stack" 
                onclick="DisplayStackButton_Click" />
            <br />
            <asp:ListBox ID="StackListBox" runat="server" 
                onselectedindexchanged="StackListBox_SelectedIndexChanged"
                DataTextField="Title"
                DataValueField="Id"
                AutoPostBack="true"
                >
                
                </asp:ListBox>
            <br />
            <asp:Label ID="SelectedStackItemContentLabel" runat="server" Text="Label"></asp:Label>
        </div>
    </div>
    </form>
</body>
</html>
